
public class RunGame {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		String[] maze = { "******************************",
				"******.....................***",
				"****......&&&................*",
				"***...*.....................**",
				"**....*****&&........*....****",
				"******...................*****",
				"*...........*.............****",
				"*..........................***",
				"*.......*.......&......**....*",
				"*......***.....&.............*",
				"**.....&&.....&..............*",
				"***.....&....&&............***",
				"****....&&..&&............****",
				"*****...&&..&............*****",
				"******...&&&..............****",
				"****....&&.................***",
				"**......&..........*.......***",
				"*.......&&.........**.....****",
				"*........&&.......***....*****",
				"*****.....&&...............***",
				"**********&&...............***",
				"********&&&..................*",
				"**...&&&&.........*..........*",
				"*...........................**",
				"*......*.....................*",
				"*......*..............**.....*",
				"*.............*.............**",
				"**.............*...........***",
				"****...........**...........**",
				"******************************" };
		
		Map map = new Map(maze);
		Structure.addMap(map);


		Melee melee = new Melee(3,8);
		Clock clock = new Clock();
		clock.start();
		int t = 0, i = 20;
		int []x = {1,1,3};

		melee.addCommand(x);
		int []y ={2,4};
		//melee.addCommand(y);
		
		
		while(true){
			System.out.println(melee);
			t = melee.endTick();
			if(t ==-1) break;
			clock.endTick();
		}//**/

		System.out.println("DONE!");
		System.out.println(melee);
		melee.endTick();
		System.out.println(melee);
	}

}
